#include<stdio.h>
#include<stdlib.h>
int main()
{
    FILE *pf = fopen("test.txt","w");
    for(int i =0;i<10;i++)
    {
        fprintf(pf,"%s %s %s i:%d\n",__FILE__,__DATE__,__TIME__,i);
    }
    fclose(pf);
    pf = NULL;
    return 0;
}